package ita.class1.group2.supermarket.common.util;

import ita.class1.group2.supermarket.common.pojo.MessageResultCode;
import ita.class1.group2.supermarket.common.pojo.ResponseMessage;

/**
 * @ Author     ：LILA3
 * @ Date       ：Created in 3:58 PM 7/21/2018
 */
public class RespMessageFactory {
    public static ResponseMessage createSuccessMessage(Object content){
        ResponseMessage responseMessage = new ResponseMessage();
        responseMessage.setResultCode(MessageResultCode.SUCCESS);
        responseMessage.setContent(content);
        return responseMessage;
    }
}
